package com.lwc.cfdns.utils.file;

import org.springframework.web.multipart.MultipartFile;


/**
 * 上传接口
 *
 * @author luwc
 * @title FileUpload
 * @description
 * @time 2023/6/4 9:31
 * @version: 1.0
 */
public interface IFileUpload {
    /**
     * 上传单个文件
     *
     * @param file             文件
     * @param allowedExtension 允许的扩展名
     * @return String
     * @throws
     * @version 1.0.0
     * @author luwc
     * @time 2023/6/4 10:51
     */
    String upload(MultipartFile file, String[] allowedExtension);

    /**
     * 域名或前缀
     *
     * @param
     * @return String
     * @throws
     * @version 1.0.0
     * @author luwc
     * @time 2023/9/19 15:20:07
     */
    String getUploadDomain();
}
